<?php
/**
 * ShopEx licence
 *
 * @copyright  Copyright (c) 2005-2010 ShopEx Technologies Inc. (http://www.shopex.cn)
 * @license  http://ecos.shopex.cn/ ShopEx License
 */
$db['accountperiod']=array (
  'columns' =>
  array (  
    'id' =>
    array (
      'type' => 'int(10)',
      'required' => true,
      'pkey' => true,
      'extra' => 'auto_increment',
      'editable' => false,
      'label' => 'ID',
      'comment' => app::get('ome')->_('ID'),
    ),
    'year' =>
    array (
      'type' => 'number',
      'editable' => false,
      'in_list' => true,
      'default_in_list' =>false,
      'label' => '年',
      'searchtype' =>'has',
      'comment' => app::get('ome')->_('年'),
    ),
    'month' =>
    array (
      'type' => 'number',
      'editable' => false,
      'in_list' => true,
      'default_in_list' =>false,
      'label' => '月',
      'searchtype' =>'has',
      'comment' => app::get('ome')->_('月'),
    ),
    'status' =>
    array (
      'type' =>
      array (
        0 => '未启用',
        1 => '已启用',
        2 => '已关帐',
      ),
      'editable' => false,
      'required' => true,
      'default' => '0',
      'width'=>80,
      'label' => '状态',
      'in_list' => true,
      'default_in_list' => true,
      'searchtype' => 'has',
      'filtertype' => 'normal',
      'filterdefault' => true,
    ),
    'remark' =>
    array (
      'type' => 'varchar(200)',
      'editable' => false,
      'in_list' => true,
      'default_in_list' =>true,
      'label' => '备注',
      'searchtype' =>'has',
      'comment' => app::get('ome')->_('备注'),
    ),
    'op_id' =>
    array (
      'type' => 'table:account@pam',
      'label' => '启用人',
      'editable' => false,
      'width' => 60,
      'filtertype' => 'normal',
      'filterdefault' => true,
      'in_list' => true,
      'default_in_list' => true,
    ),
    'start_time' =>
    array (
      'type' => 'time',
      'label' => '启用时间',
      'editable' => false,
      'width' => 130,
      'filtertype' => 'time',
      'filterdefault' => true,
      'in_list' => true,
      'default_in_list' => true,
    ),
    'close_id' =>
    array (
      'type' => 'table:account@pam',
      'label' => '关帐人',
      'editable' => false,
      'width' => 60,
      'filtertype' => 'normal',
      'filterdefault' => true,
      'in_list' => true,
      'default_in_list' => true,
    ),
    'close_time' =>
    array (
      'type' => 'time',
      'label' => '关帐时间',
      'editable' => false,
      'width' => 130,
      'filtertype' => 'time',
      'filterdefault' => true,
      'in_list' => true,
      'default_in_list' => true,
    ),
    'last_modify' =>
    array (
      'type' => 'last_modify',
      'comment' => '修改时间',
      'label' => '修改时间',
      'in_list' => true,
      'default_in_list' =>true,
    ),
  ),
  'index' =>
     array (
         'ind_id' =>
         array (
             'columns' =>
             array (
                 0 => 'id',
             ),
         ),
   ),
  'comment' => app::get('ome')->_('快递费账期'),
);
